package com.datn.utils;


import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;

public class AlertCustom {
	public static void showAlert(Context context, String title, String message){
		AlertDialog.Builder dialog=new AlertDialog.Builder(context);
        dialog.setMessage(message);
        dialog.setTitle(title);
        dialog.setPositiveButton("OK", new OnClickListener() {
			
			@Override
			public void onClick(DialogInterface dialog, int which) {
				// TODO Auto-generated method stub
				dialog.cancel();
			}
		});
        dialog.show();
	}
	
	public static void showProcessDialog(Context context, String message, String title) {
		 ProgressDialog.show(context, title, message, true, true);
	}
	
}



